<?php

/**
 * Menashop
 *
 * LICENSE
 *
 * This source file is subject to the license that is bundled
 * with this project in the file LICENSE.txt
 *
 * @category   Zend
 * @package    Admin_Model
 * @subpackage ShipmentStatus
 * @copyright  Copyright (c) 2012 Menashop UA Inc. (http://www.menashop.com.ua)
 * @license    LICENSE.txt
 * @version    1.0.0
 * @since      File available since Release 1.0.0
 */

/**
 * The data model for shipment status
 * 
 * @category   Zend
 * @package    Admin_Model
 * @subpackage ShipmentStatus
 * @copyright  Copyright (c) 2012 Menashop UA Inc. (http://www.menashop.com.ua)
 * @license    LICENSE.txt
 */
class Admin_Model_ShipmentStatus extends Zend_Db_Table_Abstract
{

    /**
     * The name of table
     * @var string 
     */
    protected $_name = 'shipment_status';

    /**
     * Fetch all shipment statuses for drop down
     * @return array
     */
    public function fetchAllPairs()
    {
        $query = $this->getAdapter()->select();
        $query->from($this->_name, array('id', 'name'));
        $query->order('id');
        $result = $this->getAdapter()->fetchPairs($query);
        return $result;
    }

}
